/**
 * <p>All device function operations interface.
 * @Title: DeviceFunOperation.java
 * @Package com.rushswise.lovetrip.commoninterface
 * @Description: Such as GPS, WIFI or network ,will use the interface to control open or close
 * Copyright: Copyright (c) 2013-2013 All rights reserved
 * Company: 
 * 
 * @author Rush Song - Administrator
 * @date 2013-8-10 下午8:16:17
 * @version V1.0
 */
package com.rushswise.lovetrip.commoninterface;

/**
 * <p> All device operations interface
 * @ClassName: DeviceFunOperation
 * @Description: TODO
 * @author Rush Song - Administrator
 * @date 2013-8-10 下午8:16:17
 *
 */
public interface DeviceFunOperation
{
    /**
      * 获取当前功能的名称，如GPS WIFI等
      *
      * @Title: getOperationType
      * @Description: TODO
      * @param none
      * @return String    返回当前操作的类型
      * @throws
      */
    String getOperationType();
    
    /**
      * 开启设备功能
      *
      * @Title: openDeviceFunciton
      * @Description: TODO
      * @param none
      * @return boolean    操作结果
      * @throws
      */
    boolean openDeviceFunciton();
    
    /**
      * 关闭设备功能
      *
      * @Title: closeDeviceFunction
      * @Description: TODO
      * @param none
      * @return 操作结果
      * @throws
      */
    boolean closeDeviceFunction();
    
    /**
      * check device status
      *
      * @Title: isActive
      * @Description: 如果处于开启状态返回true,否则返回false
      * @param @return
      * @return boolean 
      * @throws
      */
    boolean isActive();
}















